<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/css/styles.css" />
	<title>Crea Nuova Escursione</title>
</h:head>

<h:body>
<div id="header">
	<ui:include src="/resources/snippets/headerDipendente.xhtml"></ui:include>
</div>
	<h1> Crea Nuova Escursione</h1>
	<br/>
	<h:form>
		<h:outputLabel for="citta">Città:</h:outputLabel>
		<h:inputText id="citta" value="#{escursione.current.citta}" />
		<h:message for="citta"></h:message> <br/>
		<br/>
		<h:outputLabel for="luogoInteresse">Luogo di Interesse:</h:outputLabel>
		<h:inputText id="luogoInteresse" value="#{escursione.current.luogoInteresse}" />
		<h:message for="luogoInteresse"></h:message> <br/>
		<br/>
		<h:outputLabel for="ora">Ora dell'escursione (HH:MM) :</h:outputLabel>
		<h:inputText id="ora" value="#{escursione.current.ora}" />
		<h:message for="ora"></h:message> <br/>
		<br/>
		<h:commandButton value="Crea Nuovo" action="#{escursione.create()}" />
	</h:form>
	<br/>
	<br/>
	<br/>
	<h:link outcome="creaProdottoBase" value="Torna Indietro" /> <br/>
	<br/>
	<br/>
	<br/>
<div id="footer">
	<ui:include src="/resources/snippets/footer.xhtml"></ui:include>
</div>
</h:body>
</html>